package com.zzyl.nursing.task;

import com.zzyl.nursing.service.MemberReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("ReservationTask")
@Slf4j
public class ReservationTask {
    @Autowired
    private MemberReservationService memberReservationService;

    public void updateReservationStatus()
    {
        memberReservationService.updateReservationStatus();
        log.info("预约状态已更新");
    }
}
